package cn.xenosp.server.module.user.mapper;

import cn.xenosp.server.module.menu.entity.SysMenuVO;
import cn.xenosp.server.module.user.entity.SysUser;
import cn.xenosp.server.module.user.entity.SysUserVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author TongHui
* @description 针对表【sys_user(用户信息表)】的数据库操作Mapper
* @createDate 2024-10-20 19:38:14
* @Entity cn.xenosp.server.module.user.entity.SysUser
*/

public interface SysUserMapper extends BaseMapper<SysUser> {

    IPage page(IPage page, @Param("user") SysUser sysUser);

    int userVerify(@Param("user") SysUserVO sysUser);

    List<Map<String,Object>> selectMenuById(String userId);
    List<Map<String,Object>> selectRoleById(String userId);
}




